package com.starinside.wp.foundation.DO;

import com.starinside.wp.domain.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * *******************************
 * Created by Tim.
 * form com.matt
 * on 2017/7/14
 * *******************************
 */

@Data
public class LiveRoomDO {

    private String id;

    private String name;

    private String url; //直播地址

    private String areaId;

    private Date created;

    private Integer type = 1;

    private Boolean isPublic;

    private String HDUrl;

    private String thumbUrl;//预览图地址

    private String yingshiId;//萤石云id

    private String teachingAreaId;

    private Boolean active = true;//是否可用

    //新增字段
    private String deviceSerial;//  录像机序列号

    private Integer channelNo ;    //通道号

    private String hls;    //HLS流畅直播地址

    private String hlsHd;    //HLS高清直播地址

    private Integer status = 0;    // 地址使用状态

    private Integer exception; //地址异常状态

    private String statusVal;    // 地址使用状态中文

    private String openTime = "[\"00:00-23:59\"]";

    private Integer liveWay = 2;

    private String liveWayVal = "RTMP";

    private String areaName;

    public LiveRoomDO(){

    }

    public LiveRoomDO(String name, String url, String areaId, Date created, Integer type, Boolean isPublic, String HDUrl, String thumbUrl, String yingshiId, String teachingAreaId, Boolean active, String deviceSerial, Integer channelNo, String hls, String hlsHd, Integer status, Integer exception, String statusVal, String openTime, Integer liveWay, String liveWayVal, String areaName) {
        this.name = name;
        this.url = url;
        this.areaId = areaId;
        this.created = created;
        this.type = type;
        this.isPublic = isPublic;
        this.HDUrl = HDUrl;
        this.thumbUrl = thumbUrl;
        this.yingshiId = yingshiId;
        this.teachingAreaId = teachingAreaId;
        this.active = active;
        this.deviceSerial = deviceSerial;
        this.channelNo = channelNo;
        this.hls = hls;
        this.hlsHd = hlsHd;
        this.status = status;
        this.exception = exception;
        this.statusVal = statusVal;
        this.openTime = openTime;
        this.liveWay = liveWay;
        this.liveWayVal = liveWayVal;
        this.areaName = areaName;
    }
}
